package util

import (
	"strconv"
)

// StringToInt64 converts a string to int64
func StringToInt64(s string) (int64, error) {
	return strconv.ParseInt(s, 10, 64)
}

// StringToInt64Unsafe converts a string to int64 without error handling
func StringToInt64Unsafe(s string) int64 {
	i, _ := strconv.ParseInt(s, 10, 64)
	return i
}
